//
//  AlignCollectionViewHeader.m
//  ObjectiveCTools
//
//  Created by aidong on 2021/10/28.
//  Copyright © 2021 姬友大人. All rights reserved.
//

#import "AlignCollectionViewHeader.h"

@implementation AlignCollectionViewHeader
-(instancetype)init{
    self = [super init];
    if (self){
        _label = [[UILabel alloc]initWithFrame:self.bounds];
    }
    return self;
}
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self){
        self.backgroundColor = UIColor.cyanColor;
        _label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
        _label.text = @"头部视图";
        _label.font = [UIFont systemFontOfSize:20];
        [self addSubview:_label];
    }
    return self;
}
-(void)updateLabelFrame{
    _label.frame = self.bounds;
}
@end
